Integrate Service - Hubspot
I. Cases
1.Normal Cases
- Click To Call
- Iframes
- CRM call logging
- CRM create new contact
- Click to view CRM object
- Click to SMS
2. Challenge Cases
3. Special Cases
- Auto Create Ticket
- Auto Sync Contact
II. Config
- ID Callcenter
- Host
- Description
- Fields
- hapikey
- refresh_token
- Authorization
1. Info
- Example: Info
Notes:
- (1): Hubspot Portal ID, different with each integrator
III. Endpoint Table
| Name | Type | Method | Url | Trigger | Description | Parameters | Hard Params | Response Type |
|---|---|---|---|---|---|---|---|---|
| search_company | get_data | GET | https://api.hubapi.com/companies/v2/companies/?properties=name&properties=website&properties=phone&properties=email&properties=createdate&properties=hubspot_owner_id | none | search company | hapikey : query, Authorization : header, q : query | ||
| refresh_token | auth | POST | https://api.hubapi.com/oauth/v1/token | none | refresh token hubspot | redirect_uri : body, refresh_token : body | {"body":{"grant_type":"refresh_token","client_id":"85d9f7e9-1368-4df0-9110-8de70ff1984d","client_secret":"13fa57d9-8c52-4b90-b465-ce20c974dd03"},"headers":{"Content-Type":"application/x-www-form-urlencoded"}} | Access Token: access_token, Token Type: Bearer |
| get_recent_deals | GET | https://api.hubapi.com/deals/v1/deal/:offset | none | get recent deal hubspot | hapikey : query, Authorization : header, offset : path | |||
| get_associations_deals | GET | https://api.hubapi.com/crm-associations/v1/associations/:objectId/HUBSPOT_DEFINED/4 | none | get associations deal hubspot | hapikey : query, Authorization : header, objectId : path | |||
| get_association | GET | https://api.hubapi.com/crm-associations/v1/associations/:objectId/HUBSPOT_DEFINED/:definitionId | none | get association hubspot | hapikey : query, Authorization : header, objectId : path, definitionId : path | |||
| post_association | PUT | https://api.hubapi.com/crm-associations/v1/associations | none | post association hubspot | hapikey : query, Authorization : header, fromObjectId : body, toObjectId : body, definitionId : body | |||
| post_ticket | POST | https://api.hubapi.com/crm/v3/objects/tickets | none | post ticket hubspot | hapikey : query, Authorization : header, properties : body | |||
| search_tickets | POST | https://api.hubapi.com/crm/v3/objects/tickets/search | none | post contact hubspot | hapikey : query, Authorization : header, filters : body | |||
| post_contact | POST | https://api.hubapi.com/contacts/v1/contact | none | post contact hubspot | hapikey : query, Authorization : header, properties : body | |||
| get_owner | GET | https://api.hubapi.com/owners/v2/owners/:id | none | get owner hubspot | hapikey : query, Authorization : header, id : path | |||
| search_contact | get_data | GET | https://api.hubapi.com/contacts/v1/search/query?sort=vid&count=1&order=DESC | none | search contact hubspot | hapikey : query, Authorization : header, q : query | ||
| search_owner | GET | https://api.hubapi.com/owners/v2/owners | none | search owner hubspot | hapikey : query, Authorization : header, email : query | |||
| delete_engagement | DELETE | https://api.hubapi.com/engagements/v1/engagements/:id | none | delete engagement hubspot | hapikey : query, Authorization : header, id : path | |||
| update_engagement | PUT | https://api.hubapi.com/engagements/v1/engagements/:id | none | update engagement hubspot | hapikey : query, Authorization : header, engagement : body, associations : body, metadata : body | |||
| get_engagement | GET | https://api.hubapi.com/engagements/v1/engagements/:id | none | get engagement hubspot by id | hapikey : query, Authorization : header, id : path | |||
| post_engagement | POST | https://api.hubapi.com/engagements/v1/engagements | none | post engagement hubspot | hapikey : query, Authorization : header, engagement : body, associations : body, metadata : body | |||
| me | GET | https://api.hubapi.com/integrations/v1/me | none | get me hubspot | hapikey : query, Authorization : header |
- referenceDocs: HubspotApi